package com.atguigu.gmall.payment.service;

import com.atguigu.gmall.payment.model.PaymentInfo;
import com.baomidou.mybatisplus.extension.service.IService;

public interface PaymentInfoService extends IService<PaymentInfo> {

    /**
     * 保存本地交易记录信息
     *
     * @param paymentInfo
     * @param paymentType
     */
    public void savePaymentInfo(PaymentInfo paymentInfo, String paymentType);

    /**
     * 根据订单编号+支付方式查询本地交易记录
     * @param outTradeNo
     * @param payType
     * @return
     */
    PaymentInfo getPaymentInfo(String outTradeNo, String payType);
}
